#!/usr/local/bin/python3
# -*- coding: UTF-8 -*-
"""
@author:apple
@file:demo03.py
@time:2022/03/09
"""
from lxml import etree



def test01():
    ...
    content = ""
    with open("../day05/index.html") as f:
        content = f.read()
    print(content)
    # etree.HTML(content)
    html = etree.HTML(content)

    result = "".join(html.xpath("/html/body/ul/li[@id=3]/text()"))
    print(result)

if __name__ == '__main__':
    pass
    test01()